<form name="editForm">
	<div class="form-group">
		<div class="col-md-12 form-item">
			<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>员工：</div>
			<div class="col-sm-8 col-md-8 form-input" ng-class="{ 'has-error' : editForm.employeeName.$dirty && editForm.employeeName.$invalid }">
			   <div class="input-group">
			    <input name="employeeName" 
						   type="text" class="form-control" disabled required
						   ng-model="{true:'无',
									  false:'(' + editModel.employeeCorporation.employeeNo + ')'+editModel.employeeCorporation.chineseName}
									  [editModel.employeeCorporation.employeeId==null]">
					<span class="input-group-btn">
						<button type="button" 
							data-toggle="modal" 
							ng-click="editModel.chooseDelete()"
							class="btn btn-danger btn-primary"
							data-backdrop="static"
							ng-disabled="viewModel.type!=1">清空</button>
						<button type="button" 
							data-toggle="modal" 
							class="btn btn-primary" 
							data-backdrop="static" 
							ng-click="editModel.chooseUpde()"
							ng-disabled="viewModel.type!=1">选择</button>
					</span>
			  	</div>
			</div>
		</div>
		<div class="col-md-12 form-item">
			<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>公司：</div>
			<div class="col-sm-8 col-md-8 form-input">
				<button type="button" class="btn btn-success" ng-click="viewCorporationModel.chooseUpde()">选择公司</button>
			</div>
		</div>
		<div class="col-md-12 form-item">
			<table class="table table-striped table-bordered" cellspacing="0" width="80%">
						<thead>
							<tr>
							    <td width="80">
									操作
								</td>
								<th>公司编码</th>
								<th>公司名称</th>
								<th>权限</th>
							</tr>
						</thead>
						<tbody>
							<tr ng-repeat="corporation in editModel.choosedCorporation">
							    <td class="htgl-style10">
									<button type="button" 
											class="btn btn-danger" 
											ng-click="editModel.delCorporation(corporation)">删除</button>	
								</td>
								<td>{{corporation.corporationCode}}</td>
								<td>{{corporation.corporationName}}</td>
								<td>
									<input type="checkbox"
										   ng-checked="editModel.checkbox(corporation,0)"
				                           disabled> 查询
									<input type="checkbox"
										   ng-checked="editModel.checkbox(corporation,1)"
				                           ng-click="editModel.checkboxClick(corporation)"> 审批
								</td>
							</tr>
						</tbody>
					</table>
		</div>
    </div>
</form>
